
<%@ page import="givenchy.Task" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'task.label', default: 'Task')}" />
        <title>详细信息</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">首页</a></span>
            <span class="menuButton"><g:link class="list" action="list">任务列表</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">增加任务</g:link></span>
        </div>
        <div class="body">
            <h1>详细信息</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name">名称</td>
                            
                            <td valign="top" class="value">${fieldValue(bean: taskInstance, field: "name")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">权重</td>
                            
                            <td valign="top" class="value">${fieldValue(bean: taskInstance, field: "seek")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">动作</td>
                            
                            <td valign="top" class="value">
                                <g:each in="${taskInstance.actions.split('\r\n')}">
                                     <p>${it}</p>
                                </g:each>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">时间限制</td>
                            
                            <td valign="top" class="value">${fieldValue(bean: taskInstance, field: "hourRate")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">开启状态</td>
                            
                            <td valign="top" class="value"><g:formatBoolean boolean="${taskInstance.available}" true="可用" false="停止" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">每日需要点击</td>
                            
                            <td valign="top" class="value">${fieldValue(bean: taskInstance, field: "dayOfhit")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">是否广告任务</td>
                            
                            <td valign="top" class="value"><g:formatBoolean boolean="${taskInstance.isAd}" true="是" false="否" /></td>
                            
                        </tr>
                     
                    
                        <tr class="prop">
                            <td valign="top" class="name">点击质量</td>
                            
                            <td valign="top" class="value">${fieldValue(bean: taskInstance, field: "requireOfIP")}</td>
                            
                        </tr>
                     
                    
                        <tr class="prop">
                            <td valign="top" class="name">现在点击数</td>
                            
                            <td valign="top" class="value">${fieldValue(bean: taskInstance, field: "total")}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${taskInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="更新" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
